<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<title>{$vo.name}</title>
		<link href="__ROOT__/public/xiaoniao/css/public.css" rel="stylesheet" type="text/css">
		<link rel="stylesheet" href="__ROOT__/public/xiaoniao/css/swiper-3.4.2.min.css" />
		<link rel="stylesheet" href="__ROOT__/public/xiaoniao/css/icon.css" type="text/css"/>
		<link rel="stylesheet" href="__ROOT__/public/xiaoniao/css/xinfangxq.css" type="text/css"/>
	</head>
	<body>
					<!--轮播图开始-->
					<div id="title">

						<h2>{$vo['buildname']}</h2>
					</div>
		<section id="main">
			<ul>

				<volist name="lun" id="v">
        		<li class="tp">
        			<img src="{$v}" />

       			 </li>
				</volist>

			</ul>

		</section>
		<!--轮播图结束-->
		<div id="header">
			<ul>

					<h2>详情描述</h2>
					

				
			</ul>
			
			
		</div>		
		
		<div id="nav">
			<ul>
			
			
			<div class="nav-s"></div>
			<div class="nav-x"></div>
			<div class="nav-t">
				<li><span><i>区域：</i>{$vo.quyu}</span></li>
				<li><span><i>小区：</i>{$vo.buildname}</span></li>
				<li><span><i>地址：</i>{$vo.dizhi}</span></li>
				<li><span><i>价格：</i>{$vo.yuezu}</span></li>
				<li><span><i>佣金：</i>{$vo.yongjin}</span></li>
				<li><span><i>返佣时间:</i>{$vo.jiesuan}</span></li>
				
			
			</div>
			<div class="nav-up "></div>
			<div class="nav-dowm"></div>
			<div class="nav-b">
				<li style="justify-content: space-between;display: flex;"><span style="color: #4e8cef; ">详情描述:</span><span style="overflow: auto;width: 78%;max-height:5rem;display: block;">{$vo.des}</span></li>

				<li><span><i>姓名：</i>{$vo.name}</span></li>
				<php>$pattern = '/(\d{3})(\d{4})(\d{4})/i';$replacement = '$1****$3';</php>
				<li><span><i>手机：</i><php>echo preg_replace($pattern, $replacement,$vo['phone']);</php></span></li>
				
				
				
			</div>
			<div class="nav-x"></div>
			</ul>
		</div>
					
		<div id="footer">
			<php>$find = M('shoucang')->where(['tid'=>$vo['id'],'openid'=>$_SESSION['wechatopenid']])->find();</php>
			<if condition="$find eq NULL">
				<a href="{:U('Wechat/Mine/shoucang',['id'=>$vo['id']])}" class="shoucang">立即收藏</a>
				<else />
				<a  class="shoucang">已收藏</a>
			</if>
			<a href="tel:{$vo.phone}" class="call">立即拨打</a>
		</div>
		
	</body>
</html>

<script type="text/javascript" src="__ROOT__/public/xiaoniao/js/com.js" ></script>
<script type="text/javascript" src="__ROOT__/public/xiaoniao/js/jquery-1.8.3.min.js" ></script>
<script type="text/javascript">
    $(function(){

        $(window).scroll(function(){

            var t=$(document).scrollTop()
            //alert(t)

            if(t>30){

                $("#title").css({color:"#222222",background: "rgba(210,225,251,.7)" });
            }else{

                $("#title").css({color:"#222222",background: "#d2e1fb" });

            }


        })





    })


</script>